package com.woniu.service.impl;

import com.woniu.entity.Perms;
import com.woniu.dao.PermsMapper;
import com.woniu.service.PermsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermsServiceImpl implements PermsService {
    @Autowired
    private PermsMapper permsMapper;

    @Override
    public List<Perms> findPermsByUsername(String username) {
        return permsMapper.selectPermsByUsername(username);
    }

    @Override
    public List<Perms> findAllPerms() {
        return permsMapper.selectAllPerms();
    }
}
